package com.ztgf.sys.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.sys.models.bo.SysRoleMenuRelationBO;
import com.ztgf.sys.models.bo.SysRoleMenuRelationSaveBO;
import com.ztgf.sys.models.dto.SysRoleMenuRelationDTO;

import java.util.List;

/**
 * <p>
 * 角色菜单关系表  服务类
 * </p>
 *
 * @author YUE
 * @since 2020-05-26
 */
public interface ISysRoleMenuRelationService extends IService<SysRoleMenuRelationDTO> {
    boolean add(SysRoleMenuRelationSaveBO saveBO);
    boolean insertOrUpdateRoleMenu(List<SysRoleMenuRelationBO> boList,Long roleId);
    void updateMenuRelation(SysRoleMenuRelationBO bo,SysRoleMenuRelationDTO sysRoleMenuRelationDTO);
    SysRoleMenuRelationDTO getByMenuAndRole(Long menuId,Long roleId);
    boolean updateShopRoleMenu(SysRoleMenuRelationBO sysRoleMenuRelationBO);
}
